//
//  FFObjectManager.m
//  FliqFlicks
//
//  Created by EJ Lacap on 1/12/15.
//  Copyright (c) 2015 Lexnus. All rights reserved.
//

#import "FFObjectManager.h"

#define BASE_URL @"http://api.themoviedb.org/3"

@implementation FFObjectManager

+ (instancetype)sharedManager {
    NSURL *url = [NSURL URLWithString:BASE_URL];
    
    FFObjectManager *sharedManager  = [self managerWithBaseURL:url];
    sharedManager.requestSerializationMIMEType = RKMIMETypeJSON;
    sharedManager.managedObjectStore = [RKManagedObjectStore defaultStore];
    /*
     THIS CLASS IS MAIN POINT FOR CUSTOMIZATION:
     - setup HTTP headers that should exist on all HTTP Requests
     - override methods in this class to change default behavior for all HTTP Requests
     - define methods that should be available across all object managers
     */
    
    [sharedManager setupRequestDescriptors];
    [sharedManager setupResponseDescriptors];
    
    return sharedManager;
}

- (void) setupRequestDescriptors {
}

- (void) setupResponseDescriptors {
}


@end
